<template>
	<view class="body">
		<view class="news" @click="toNoticeUrl">
			<view class="news-top">
				<image class="top-img" src="../../../static/news/news-1.png" mode="widthFix"></image>
				<view class="top-text">
					<view class="t1">系统公告</view>
					<view class="t2">近日合肥将有连续降雨,请前往车前站车检车辆注意安全~</view>
				</view>
				<image class="news-img" src="../../../static/news/right.png" mode=""></image>
			</view>
		</view>
		<view class="news">
			<view class="news-top">
				<image class="top-img" src="../../../static/news/news-2.png" mode="widthFix"></image>
				<view class="top-text">
					<view class="t1">系统消息</view>
					<view class="t2">近日合肥将有连续降雨,请前往车前站车检车辆注意安全~</view>
				</view>
				<image class="news-img" src="../../../static/news/right.png" mode=""></image>
			</view>
		</view>
		<view class="news">
			<view class="news-top">
				<image class="top-img" src="../../../static/news/news-3.png" mode="widthFix"></image>
				<view class="top-text">
					<view class="t1">订单通知</view>
					<view class="t2">近日合肥将有连续降雨,请前往车前站车检车辆注意安全~</view>
				</view>
				<image class="news-img" src="../../../static/news/right.png" mode=""></image>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods:{
			toNoticeUrl(){
				uni.navigateTo({
					url:"./notice/index"
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F5F9;
	}

	.news {
		position: relative;
		margin-top: 20rpx;

		.news-top {
			width: 95%;
			margin: 0 auto;
			display: flex;
			align-items: center;
			background-color: #FFFFFF;

			.top-img {
				width: 150rpx;
				margin-left: 15rpx;
			}

			.top-text {
				margin-left: 30rpx;
				margin-right: 40rpx;

				.t1 {
					color: #000000;
					font-weight: 700;
					font-size: 35rpx;
					margin-bottom: 15rpx;
				}

				.t2 {
					color: #999999;
					font-size: 28rpx;
					margin-bottom: 15rpx;
				}
			}
		}

		.news-img {
			position: absolute;
			right: 30rpx;
			width: 14rpx;
			height: 28rpx;
		}
	}
</style>
